
package de.saar.penguin.give2.server;
/**
 * This Enum represents the possible colors, NULL should be used for the objects
 * without color attribute.
 * 
 * @author Boris Fersing
 */
enum ObjectColor {

	BLUE("blue", "blue"), GREEN("green", "green"), RED("red", "red"), YELLOW("yellow","yellow"), NULL("", "null");

	private final String name;
	private final String predicate;

	/**
	 * Constructor.
	 * 
	 * @param name
	 *            The name used to generate REs
	 * @param predicate
	 *            The predicate used by the system (atom list, ...)
	 */
	ObjectColor(String name, String predicate) {
		this.name = name;
		this.predicate = predicate;
	}

	public String getName() {
		return this.name;
	}

	public String getPredicate() {
		return this.predicate;
	}

	/**
	 * override the default toString method, this makes generating REs easier
	 */
	public String toString() {
		return this.name;
	}
}
